﻿using System;
using System.Collections.Generic;
using Amba.ImageMultiPicker.Fields;
using Amba.ImageMultiPicker.Model;
using Amba.ImageMultiPicker.Services;
using Orchard.Commands;
using Orchard.Environment.Extensions;
using System.Linq;

namespace Amba.ImageMultiPicker.Commands
{

    public class Go2SeeCommands : DefaultOrchardCommandHandler
    {
        private readonly IExtensionManager _extensionManager;
   

        public Go2SeeCommands(IExtensionManager extensionManager)
        {
            _extensionManager = extensionManager;
        }

        [CommandHelp("")]
        [CommandName("amba.imp cleanup")]
        public void CacheCleanup() 
        {
            var resizeService = new ImageResizerService();
            resizeService.DeleteOldCache();
        }

     
    }
}